﻿@Master['Master']

@Section['Content']
<style>
	table tr td a {
		display:block;
		height:100%;
		width:100%;
		text-decoration: none !important;
		color: inherit;
	}
	table tr td a:hover,
	table tr td a:visited {
		color: inherit; 
	}

</style>

<div class="container">
	<table class="table table-hover">
		<thead>
			<tr>
				<th>#</th>
				<th><span class="glyphicon glyphicon-paperclip"></span></th>
				<th>From</th>
				<th>To</th>
				<th>Subject</th>
				<th>Sent</th>
			</tr>
		</thead>
		<tbody>
@Each.Model.HeaderMail
				<tr>
					<td><a href='@(Url.Action("Message", "Home", new {id = email.Id}))' tabIndex="-1">@Current.MsgID</a></td>
					<td><a href='@(Url.Action("Message", "Home", new {id = email.Id}))' tabIndex="-1">@Current.Attachment.Count  : "<span class='glyphicon glyphicon-paperclip'></span>")</a></td>
					<td><a href='@(Url.Action("Message", "Home", new {id = email.Id}))' tabIndex="-1">@Current.From</a></td>
					<td><a href='@(Url.Action("Message", "Home", new {id = email.Id}))' tabIndex="-1">@Current.To</a></td>
					<td><a href='@(Url.Action("Message", "Home", new {id = email.Id}))' tabIndex="-1">@Current.Subject</a></td>
					<td><a href='@(Url.Action("Message", "Home", new {id = email.Id}))' tabIndex="-1">@Current.Senddate</a></td>
				</tr>
				@EndEach
		</tbody>
	</table>
</div>
@EndSection